package xyz.yq56.easytool.utils.exception;

import lombok.extern.slf4j.Slf4j;
import xyz.yq56.easytool.model.exception.FriendException;

/**
 * @author yi qiang
 * @date 2021/9/17 1:39
 */
@Slf4j
public class ExceptionUtil {

    private ExceptionUtil() {
    }

    public static FriendException friend(Exception e) {
        log.error("Service Exception | Friendly Msg: {}", e.getMessage(), e);
        return new FriendException(e.getMessage());
    }

}
